<?php


namespace app\api\model\Warehouse;


use app\admin\event\SystemLog;
use app\api\model\Warehouse;
use think\Model;

class Store extends Model
{

    protected static function init()
    {
        self::observe(SystemLog::class);
    }

    protected $table = 'jxc_ware_store';
    protected $pk = 'id';

    public function warehouses()
    {
        return $this->hasMany(Warehouse::class, 'store');
    }
}
